<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@include file="../include/head.jsp"%>
    <%@include file="../include/link.jsp" %>
    <link rel="stylesheet" type="text/css" href="../../../static/wxApp/css/index.css">
</head>
<script>
    //处理图片的宽高
    function setImgWH(obj) {
        if (obj.width > obj.height) {
            $(obj).css('height', '100%');
        } else {
            $(obj).css('width', '100%');
        }
    }
</script>
<body>
<%@include file="../include/appHerder.jsp" %>
<div class="container">
    <div class="content">
        <div class="filter">
            <div class="box1">
                <span><a href="${ctx}">首页</a></span>
                <span>></span>
                <span><a href="${ctx}/wxApp/1.html">小程序商店</a></span>
            </div>
            <%@include file="../include/categoryMenu.jsp" %>
        </div>
        <div class="companyBigBox clearfix">
            <c:forEach var="item" items="${liebaoAppList}">
                <a href="${ctx}/publish.html?id=${item.id}&user=admin" target="_blank">
                    <div class="companyBox">
                        <div class="top clearfix">
                            <div class="left"><img onload="setImgWH(this)" src="${item.logoUrl}"
                                               title="${item.appName}"    alt="${item.appName}小程序"></div>
                            <div class="right">
                                <div class="box1 clearfix">
                                    <span class="span1">${item.appName}</span>
                                    <span class="span2">审核</span>
                                </div>
                                <div class="box2 clearfix">
                                    <span class="span1"><img src="../../../static/wxApp/img/xing.png" alt="${item.appName}小程序"></span>
                                    <span class="span2">${item.hot}</span>
                                </div>
                                <div class="box3">
                                    <p title="${item.appSum}">${item.appSum}</p>
                                </div>
                            </div>
                        </div>
                        <div class="bottom clearfix">
                            <div class="left">
                                <c:forEach var="tag" items="${item.tagsArr}">
                                    <span>${tag}</span>
                                </c:forEach>
                            </div>
                            <div class="right">
                                9999+
                            </div>
                        </div>
                    </div>
                </a>
            </c:forEach>
        </div>
    </div>
</div>
<%@include file="../include/footer.jsp" %>
</body>
</html>